VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form frmBBL_ConvOrdInv 
   BackColor       =   &H8000000D&
   Caption         =   "Convert Order to Invoice"
   ClientHeight    =   2160
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4860
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2160
   ScaleWidth      =   4860
   StartUpPosition =   2  'CenterScreen
   Begin VB.TextBox txtInvNO 
      Height          =   315
      Left            =   3240
      TabIndex        =   4
      Top             =   840
      Visible         =   0   'False
      Width           =   1000
   End
   Begin VB.CommandButton cmdexit 
      Caption         =   "Cl&ose"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   2640
      TabIndex        =   3
      Top             =   1440
      Width           =   1095
   End
   Begin VB.CommandButton cmdconvert 
      Caption         =   "&Convert"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   1080
      TabIndex        =   2
      Top             =   1440
      Width           =   1095
   End
   Begin MSDataListLib.DataCombo cboIssNo 
      Height          =   315
      Left            =   720
      TabIndex        =   0
      Top             =   840
      Width           =   1200
      _ExtentX        =   2117
      _ExtentY        =   556
      _Version        =   393216
      ListField       =   "issue"
      Text            =   ""
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   3480
      Top             =   0
      Visible         =   0   'False
      Width           =   1335
      _ExtentX        =   2355
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      BackColor       =   &H8000000D&
      Caption         =   "To"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000E&
      Height          =   195
      Index           =   1
      Left            =   2760
      TabIndex        =   7
      Top             =   840
      Visible         =   0   'False
      Width           =   240
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      BackColor       =   &H8000000D&
      Caption         =   "From"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000E&
      Height          =   195
      Index           =   0
      Left            =   120
      TabIndex        =   6
      Top             =   840
      Visible         =   0   'False
      Width           =   420
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackColor       =   &H8000000D&
      Caption         =   "Invoice No."
      ForeColor       =   &H8000000E&
      Height          =   195
      Left            =   3360
      TabIndex        =   5
      Top             =   600
      Visible         =   0   'False
      Width           =   825
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "Issue No."
      ForeColor       =   &H8000000E&
      Height          =   195
      Left            =   960
      TabIndex        =   1
      Top             =   600
      Width           =   675
   End
End
Attribute VB_Name = "frmBBL_ConvOrdInv"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim ssql As String



Private Sub cmdconvert_Click()
On Error GoTo Check_Err
    If cboIssNo.Text = "" Then
        MsgBox " IssueNo is Empty...!, Enter Value", vbCritical, "Warning"
        Exit Sub
    Else
        Call BBL510(cboIssNo.Text, txtInvNO.Text)
        Adodc1.Refresh
        cboIssNo.Text = ""
    End If
Check_next:
    Exit Sub
Check_Err:
    MsgBox "Convert error: " & Err.Description
    Resume Check_next
End Sub

Private Sub cmdExit_Click()
Unload Me
End Sub
Private Sub Form_Load()
ssql = ""
ssql = "SELECT distinct dbo.ECH.EHODN as Issue " & _
        "FROM dbo.ECL INNER JOIN dbo.ECH ON dbo.ECL.ELODN = dbo.ECH.EHODN " & _
        "WHERE     (dbo.ECL.ELSTT = '3')"
Adodc1.ConnectionString = ConnectString
Adodc1.CommandTimeout = 10
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = ssql
Adodc1.Refresh
Set cboIssNo.RowSource = Adodc1
End Sub

